package it.assetroma.ws;

public class ProvaProxy implements it.assetroma.ws.Prova {
  private String _endpoint = null;
  private it.assetroma.ws.Prova prova = null;
  
  public ProvaProxy() {
    _initProvaProxy();
  }
  
  public ProvaProxy(String endpoint) {
    _endpoint = endpoint;
    _initProvaProxy();
  }
  
  private void _initProvaProxy() {
    try {
      prova = (new it.assetroma.ws.ProvaServiceLocator()).getProva();
      if (prova != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)prova)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)prova)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (prova != null)
      ((javax.xml.rpc.Stub)prova)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public it.assetroma.ws.Prova getProva() {
    if (prova == null)
      _initProvaProxy();
    return prova;
  }
  
  public java.lang.String sayHelloWorld(java.lang.String name) throws java.rmi.RemoteException{
    if (prova == null)
      _initProvaProxy();
    return prova.sayHelloWorld(name);
  }
  
  
}